<?php
/**
 * CreateTime: 2024/1/17 16:34
 * User:LinQ
 */

namespace App\Models\Address;

use App\Models\BasicModel;

class AddressModel extends BasicModel
{
    protected $table = 'address';

    protected $fillable = [
        'address_id',
        'customer_id',
        'recipient_name',
        'phone_number',
        'city',
        'state',
        'address_line',
        'postal_code',
        'status',
        'created_at',
        'updated_at',
    ];

    protected $casts = [
        'address_id' => 'integer',
        'customer_id' => 'integer',
        'recipient_name' => 'string',
        'phone_number'  => 'string' ,
        'city'  => 'string',
        'state'  => 'string' ,
        'address_line'  => 'string' ,
        'postal_code'  => 'string' ,
        'status' => 'integer',
        'created_at' => 'string' ,
        'updated_at'=> 'string' ,
    ];

    protected $hidden =[
        'status',
        'created_at',
        'updated_at',
    ];
}